<template>
  <div id="app">
    <div>
      <div class="header">
        <h1>题目:</h1>
        <div>
          在【展示区】中共有两个组件和一个div。
          <br />你现在需要将点击波浪的效果添加到这他们身上。
          <br />尽可能的对他们做出最少的代码改变。
        </div>
        <div>
          效果展示：
          <img src="@/assets/demo.png" alt srcset />
        </div>
      </div>

      <!-- 展示区 -->
      <div class="content">
        <demo-1></demo-1>

        <demo-2></demo-2>

        <div class="div-demo"></div>
      </div>
    </div>
  </div>
</template>

<script>
import Demo_1 from "@/components/Demo_1.vue";
import Demo_2 from "@/components/Demo_2.vue";

export default {
  name: "App",
  components: {
    "demo-1": Demo_1,
    "demo-2": Demo_2
  }
};
</script>

<style scoped>
.header {
  padding: 50px;
}
.content {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 50px;
  padding: 100px 0;
  border: 1px solid rgba(0, 0, 0, 0.1);
  position: relative;
}
.content::before {
  content: "展示区";
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(0, 0, 0, 0.3);
  font-size: 40px;
  font-weight: bold;
}
.div-demo {
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 0 15px 1px rgba(0, 0, 0, 0.08);
  width: 150px;
  height: 150px;
  border-radius: 3px;
  cursor: pointer;
}
</style>
